package io;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *  使用转换输入流读取文本数据
 */
public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("BJava_SE_API/src/io/ISRDemo.java");
        InputStreamReader isr = new InputStreamReader(fis);

        int d ;
        while ( (d = isr.read() ) != -1) {
            System.out.println((char) d);
        }
        isr.close();

    }
}
